<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">11063</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2009-05-19T12:43:01-04:00</created-at>
  <creator-id type="integer">11063</creator-id>
  <milestone-due-on type="datetime">2009-05-18T20:00:00-04:00</milestone-due-on>
  <milestone-id type="integer">40236</milestone-id>
  <number type="integer">2</number>
  <permalink>date-property-subtraction-bug</permalink>
  <priority type="integer">2</priority>
  <project-id type="integer">30941</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag nil="true"></tag>
  <title>Date Property subtraction bug</title>
  <updated-at type="datetime">2009-05-19T16:28:53-04:00</updated-at>
  <user-id type="integer">11063</user-id>
  <user-name>Rick DeNatale</user-name>
  <creator-name>Rick DeNatale</creator-name>
  <assigned-user-name>Rick DeNatale</assigned-user-name>
  <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/2</url>
  <milestone-title>0.0.8</milestone-title>
  <original-body>Reported by Paul Scott-Murphy

I saw the following stack trace just now when testing an iCalendar
file.

TypeError: expected numeric or date
       from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date.rb:1220:in `-'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
120:in `send'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
120:in `method_missing'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:163:in `set_occurrence_properties!'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:171:in `recurrence'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:105:in `each'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:118:in `to_a'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:118:in `to_a'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:137:in `occurrences'
       from (irb):27
       from (irb):26:in `each'
       from (irb):26
       from :0

It looks like the use of method_missing in RiCal::PropertyValue::Date
isn't correct when invoking the - method, as the ::Date class requires
the argument sent to that method to be a ::Numeric or ::Date.

I added the following test for this in date_spec.rb:

   describe &quot;.-&quot; do
     it &quot;should return duration for two instances&quot; do
       dt1 = RiCal::PropertyValue::Date.new(nil, :value =&gt;
DateTime.parse(&quot;20090519&quot;))
       dt2 = RiCal::PropertyValue::Date.new(nil, :value =&gt;
DateTime.parse(&quot;20090518&quot;))
       (dt1 - dt2).should == 1
     end
   end

And made the test pass with this additional method in
RiCal::PropertyValue::Date

     def - (x)
       self.ruby_value - x.ruby_value
     end

There may be other instances of using the - or + methods on
RiCal::PropertyValue classes elsewhere too, which I haven't looked at.</original-body>
  <latest-body>Reported by Paul Scott-Murphy

I saw the following stack trace just now when testing an iCalendar
file.

TypeError: expected numeric or date
       from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date.rb:1220:in `-'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
120:in `send'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
120:in `method_missing'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:163:in `set_occurrence_properties!'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:171:in `recurrence'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:105:in `each'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:118:in `to_a'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:118:in `to_a'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:137:in `occurrences'
       from (irb):27
       from (irb):26:in `each'
       from (irb):26
       from :0

It looks like the use of method_missing in RiCal::PropertyValue::Date
isn't correct when invoking the - method, as the ::Date class requires
the argument sent to that method to be a ::Numeric or ::Date.

I added the following test for this in date_spec.rb:

   describe &quot;.-&quot; do
     it &quot;should return duration for two instances&quot; do
       dt1 = RiCal::PropertyValue::Date.new(nil, :value =&gt;
DateTime.parse(&quot;20090519&quot;))
       dt2 = RiCal::PropertyValue::Date.new(nil, :value =&gt;
DateTime.parse(&quot;20090518&quot;))
       (dt1 - dt2).should == 1
     end
   end

And made the test pass with this additional method in
RiCal::PropertyValue::Date

     def - (x)
       self.ruby_value - x.ruby_value
     end

There may be other instances of using the - or + methods on
RiCal::PropertyValue classes elsewhere too, which I haven't looked at.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Reported by Paul Scott-Murphy&lt;/p&gt;
&lt;p&gt;I saw the following stack trace just now when testing an
iCalendar file.&lt;/p&gt;
&lt;p&gt;TypeError: expected numeric or date&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;ruby/1.8/date.rb:1220:in &lt;code&gt;-'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;120:in &lt;code&gt;send'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;120:in &lt;code&gt;method_missing'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:163:in
&lt;code&gt;set_occurrence_properties!'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:171:in &lt;code&gt;recurrence'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:105:in &lt;code&gt;each'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:118:in &lt;code&gt;to_a'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:118:in &lt;code&gt;to_a'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:137:in &lt;code&gt;occurrences'&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from (irb):27
   from (irb):26:in `each'
   from (irb):26
   from :0
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;It looks like the use of method_missing in
RiCal::PropertyValue::Date isn't correct when invoking the -
method, as the ::Date class requires the argument sent to that
method to be a ::Numeric or ::Date.&lt;/p&gt;
&lt;p&gt;I added the following test for this in date_spec.rb:&lt;/p&gt;
&lt;p&gt;describe &quot;.-&quot; do&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt; it &quot;should return duration for two instances&quot; do
   dt1 = RiCal::PropertyValue::Date.new(nil, :value =&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;DateTime.parse(&quot;20090519&quot;))&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   dt2 = RiCal::PropertyValue::Date.new(nil, :value =&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;DateTime.parse(&quot;20090518&quot;))&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   (dt1 - dt2).should == 1
 end
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;end&lt;/p&gt;
&lt;p&gt;And made the test pass with this additional method in
RiCal::PropertyValue::Date&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt; def - (x)
   self.ruby_value - x.ruby_value
 end
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;There may be other instances of using the - or + methods on
RiCal::PropertyValue classes elsewhere too, which I haven't looked
at.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Reported by Paul Scott-Murphy

I saw the following stack trace just now when testing an iCalendar
file.

TypeError: expected numeric or date
       from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date.rb:1220:in `-'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
120:in `send'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
120:in `method_missing'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:163:in `set_occurrence_properties!'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:171:in `recurrence'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:105:in `each'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:118:in `to_a'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:118:in `to_a'
       from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:137:in `occurrences'
       from (irb):27
       from (irb):26:in `each'
       from (irb):26
       from :0

It looks like the use of method_missing in RiCal::PropertyValue::Date
isn't correct when invoking the - method, as the ::Date class requires
the argument sent to that method to be a ::Numeric or ::Date.

I added the following test for this in date_spec.rb:

   describe &quot;.-&quot; do
     it &quot;should return duration for two instances&quot; do
       dt1 = RiCal::PropertyValue::Date.new(nil, :value =&gt;
DateTime.parse(&quot;20090519&quot;))
       dt2 = RiCal::PropertyValue::Date.new(nil, :value =&gt;
DateTime.parse(&quot;20090518&quot;))
       (dt1 - dt2).should == 1
     end
   end

And made the test pass with this additional method in
RiCal::PropertyValue::Date

     def - (x)
       self.ruby_value - x.ruby_value
     end

There may be other instances of using the - or + methods on
RiCal::PropertyValue classes elsewhere too, which I haven't looked at.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Reported by Paul Scott-Murphy&lt;/p&gt;
&lt;p&gt;I saw the following stack trace just now when testing an
iCalendar&lt;br&gt;
file.&lt;/p&gt;
&lt;p&gt;TypeError: expected numeric or date&lt;br&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;ruby/1.8/date.rb:1220:in &lt;code&gt;-'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;120:in &lt;code&gt;send'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;120:in &lt;code&gt;method_missing'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:163:in
&lt;code&gt;set_occurrence_properties!'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:171:in
&lt;code&gt;recurrence'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:105:in
&lt;code&gt;each'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:118:in
&lt;code&gt;to_a'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:118:in
&lt;code&gt;to_a'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from /Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;occurrence_enumerator.rb:137:in
&lt;code&gt;occurrences'&amp;lt;br/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   from (irb):27
   from (irb):26:in `each'
   from (irb):26
   from :0&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;It looks like the use of method_missing in
RiCal::PropertyValue::Date&lt;br&gt;
isn't correct when invoking the - method, as the ::Date class
requires&lt;br&gt;
the argument sent to that method to be a ::Numeric or ::Date.&lt;/p&gt;
&lt;p&gt;I added the following test for this in date_spec.rb:&lt;/p&gt;
&lt;p&gt;describe &quot;.-&quot; do&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt; it &quot;should return duration for two instances&quot; do
   dt1 = RiCal::PropertyValue::Date.new(nil, :value =&amp;gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;DateTime.parse(&quot;20090519&quot;))&lt;br&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   dt2 = RiCal::PropertyValue::Date.new(nil, :value =&amp;gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;DateTime.parse(&quot;20090518&quot;))&lt;br&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;   (dt1 - dt2).should == 1
 end&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;end&lt;/p&gt;
&lt;p&gt;And made the test pass with this additional method in&lt;br&gt;
RiCal::PropertyValue::Date&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt; def - (x)
   self.ruby_value - x.ruby_value
 end&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;There may be other instances of using the - or + methods on&lt;br&gt;
RiCal::PropertyValue classes elsewhere too, which I haven't looked
at.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T12:43:01-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">2</number>
      <permalink>date-property-subtraction-bug</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Date Property subtraction bug</title>
      <updated-at type="datetime">2009-05-19T12:43:05-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/2</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I replied:
Thanks Paul.

Although there is a bug here. I'm not sure that the fix is correct,
although I haven't had my coffee yet this morning.

I'm pretty sure that subtracting two PropertyValue::Dates should
result in a PropertyValue::Duration rather than an Integer.

Could you send me the icalendar file which caused the failure?</body>
      <body-html>&lt;div&gt;&lt;p&gt;I replied:&lt;br&gt;
Thanks Paul.&lt;/p&gt;
&lt;p&gt;Although there is a bug here. I'm not sure that the fix is
correct,&lt;br&gt;
although I haven't had my coffee yet this morning.&lt;/p&gt;
&lt;p&gt;I'm pretty sure that subtracting two PropertyValue::Dates
should&lt;br&gt;
result in a PropertyValue::Duration rather than an Integer.&lt;/p&gt;
&lt;p&gt;Could you send me the icalendar file which caused the
failure?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T12:43:36-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">2</number>
      <permalink>date-property-subtraction-bug</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Date Property subtraction bug</title>
      <updated-at type="datetime">2009-05-19T12:43:37-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/2</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Paul later added:

Having read through how the DateTime class handles this, I'm not sure
that the fix is quite right now.  That said, there's still a bug.

--Paul</body>
      <body-html>&lt;div&gt;&lt;p&gt;Paul later added:&lt;/p&gt;
&lt;p&gt;Having read through how the DateTime class handles this, I'm not
sure&lt;br&gt;
that the fix is quite right now. That said, there's still a
bug.&lt;/p&gt;
&lt;p&gt;--Paul&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T12:44:06-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">2</number>
      <permalink>date-property-subtraction-bug</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Date Property subtraction bug</title>
      <updated-at type="datetime">2009-05-19T12:44:08-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/2</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Okay, 

date - date will now produce a duration
date - datetime will also produce a duration
date - duration will produce a datetime
date + duration will produce a datetime</body>
      <body-html>&lt;div&gt;&lt;p&gt;Okay,&lt;/p&gt;
&lt;p&gt;date - date will now produce a duration&lt;br&gt;
date - datetime will also produce a duration&lt;br&gt;
date - duration will produce a datetime&lt;br&gt;
date + duration will produce a datetime&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T16:18:57-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">2</number>
      <permalink>date-property-subtraction-bug</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Date Property subtraction bug</title>
      <updated-at type="datetime">2009-05-19T16:18:57-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/2</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-19T16:28:53-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
:milestone: 
</diffable-attributes>
      <milestone-id type="integer">40236</milestone-id>
      <number type="integer">2</number>
      <permalink>date-property-subtraction-bug</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>resolved</state>
      <tag nil="true"></tag>
      <title>Date Property subtraction bug</title>
      <updated-at type="datetime">2009-05-19T16:28:53-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/2</url>
      <milestone-title>0.0.8</milestone-title>
    </version>
  </versions>
</ticket>
